/**
 * @USER: Administrator
 * @DATE: 2024/9/27 下午10:36
 * @VERSION: 1.0.0
 */
public class LC1822 {
    public static void main(String[] args) {

    }
    public int arraySign(int[] nums) {
        int neg = 0,pos = 0;
        for (int num : nums) {
            if (num==0){
                return 0;
            }else if (num<0){
                neg++;
            }else {
                pos++;
            }
        }
        return neg%2==0?1:-1;
    }
}
